package com.example.demo.day.config.learn.design.adapter.p3;

//电能适配器
public class ElectricAdapter implements Motor {

    private ElectricMotor motor;

    public ElectricAdapter() {
        this.motor = new ElectricMotor();
    }

    @Override
    public void drive() {
        motor.electricDrive();
    }
}
